package com.hui.security.app.service;

import com.hui.security.app.entity.App;
import org.springframework.beans.factory.annotation.Autowired;

import javax.annotation.Resource;
import java.util.List;

/**
 * <b><code>AppService</code></b>
 * <p/>
 * Description:
 * <p/>
 * <b>Creation Time:</b> 2019/1/22 16:15.
 *
 * @author Hu weihui
 */
@Resource
public interface AppService {

    /**
     * Add app.
     *
     * @param app the app
     * @return the app
     * @author : Hu weihui
     * @since hui_project v1
     */
    App add(App app);

    /**
     * Delete.
     *
     * @param appId the app id
     * @author : Hu weihui
     * @since hui_project v1
     */
    void delete(String appId);

    /**
     * Update.
     *
     * @param app the app
     * @author : Hu weihui
     * @since hui_project v1
     */
    void update(App app);

    /**
     * Get app.
     *
     * @param appId the app id
     * @return the app
     * @author : Hu weihui
     * @since hui_project v1
     */
    App get(String appId);


    /**
     * List app list.
     *
     * @return the list
     * @author : Hu weihui
     * @since nile -cmszbs-szcst 0.1.0
     */
    List<App> listApp(String appName);
}
